#include "shape_interface.hpp"
#include "interface_ids.hpp"

shape_interface::shape_interface()
{
}

void shape_interface::show( bool show_interface )
{
}

void shape_interface::assign( wxPanel *parent )
{
	m_parent = parent;

	m_new_shape = new wxButton(parent, ID_BUTNEWSHAPE, wxT("New"), wxPoint(121, 608), wxSize(55,25));
	m_delete_shape = new wxButton(parent, ID_BUTDELETESHAPE, wxT("Delete"), wxPoint(182, 608), wxSize(55,25));

	m_switch_circular = new wxButton(parent, ID_BUTCIRCULAR, wxT("circle"), wxPoint(257, 507), wxSize(77,26));
	m_switch_polygon = new wxButton(parent, ID_BUTPOLYGONAL, wxT("polygon"), wxPoint(340, 508), wxSize(77,26));

	m_append_vertex = new wxButton(parent, ID_BUTAPPENDVERTEX, wxT("append"), wxPoint(257, 639), wxSize(55,25));
	m_delete_vertex = new wxButton(parent, ID_BUTDELETEVERTEX, wxT("delete"), wxPoint(318, 639), wxSize(55,25));
	m_active_vertex_position = new wxButton(parent, ID_BUTACTIVEVERTEX, wxT("inactive"), wxPoint(378, 670), wxSize(47,19));
	m_active_circle_offset = new wxButton(parent, ID_BUTACTIVECIRCLE, wxT("inactive"), wxPoint(266, 741), wxSize(47,19));

	m_shapes  = new wxListBox(parent, ID_LISTSHAPES, wxPoint(121, 507), wxSize(130, 95));
	m_vertices  = new wxListBox(parent, ID_LISTVERTICES, wxPoint(121, 639), wxSize(130, 95));
	
	m_density.assign(parent, ID_TXTDENSITY, wxT(""), wxPoint(293, 559),    wxSize(41, 20), wxTE_NO_VSCROLL, wxT("density"));
	m_restitution.assign(parent, ID_TXTRESTITUTION, wxT(""), wxPoint(390, 559),    wxSize(32, 20), wxTE_NO_VSCROLL, wxT("restitution"));
	m_friction.assign(parent, ID_TXTFRICTION, wxT(""), wxPoint(462, 559),    wxSize(45, 20), wxTE_NO_VSCROLL, wxT("friction"));
	m_collision_message.assign(parent, ID_TXTCOLLISIONMESSAGE, wxT(""), wxPoint(307, 585),    wxSize(200, 20), wxTE_NO_VSCROLL, wxT("Message"));
	m_vertex_x.assign(parent, ID_TXTVERTEXX, wxT(""), wxPoint(276, 670),    wxSize(39, 20), wxTE_NO_VSCROLL, wxT("VX"));
	m_vertex_y.assign(parent, ID_TXTVERTEXY, wxT(""), wxPoint(337, 670),    wxSize(35, 20), wxTE_NO_VSCROLL, wxT("y"));
	m_circle_offset_x.assign(parent, ID_TXTCIRCLEOFFSETX, wxT(""), wxPoint(160, 740),    wxSize(42, 20), wxTE_NO_VSCROLL, wxT("Circle X"));
	m_circle_offset_y.assign(parent, ID_TXTCIRCLEOFFSETY, wxT(""), wxPoint(220, 740),    wxSize(42, 20), wxTE_NO_VSCROLL, wxT("Y"));
	m_circle_radius.assign(parent, ID_TXTRADIUS, wxT(""), wxPoint(352, 741),    wxSize(45, 20), wxTE_NO_VSCROLL, wxT("Radius"));

	m_is_sensor = new wxCheckBox(parent, ID_CHECKSENSOR, wxT("is sensor"), wxPoint(261, 536));
}